TCS_GCP\Checkout B

Total Complexity 93
Dependencies 4
Dependents 1
Total lines 865
Lines of code 554
Logical lines of code 307
Comment lines 134
Methods 26
Properties 1

Methods 26

Method Rating Maintainability Complexity Lines of code
add_gift_card_to_session()
A
38 14 71
remove_gift_card_from_session()
A
45 9 44
show_available_gift_cards_on_order_pay_endpoint()
A
42 7 60
init()
A
45 8 39
rollback()
A
46 7 39
filter_calculated_total()
S
46 5 40
before_pay_action()
S
49 5 32
withdraw_gift_cards()
S
46 4 38
thank_you_page_show_gift_card_details_after_order_table()
S
50 4 32
added_gift_cards_html()
S
55 3 20
rollback_for_order()
S
56 3 19
conditionally_enqueue_scripts_and_styles()
S
57 3 18
checkout_order_process_gift_cards()
S
57 3 18
handle_on_order_pay_page()
S
60 3 14
get_max_amount_to_withdraw_from_card()
S
62 3 13
order_needs_payment()
S
71 2 5
register_scripts_and_styles()
S
61 1 14
clear_session()
S
74 1 5
get_html_for_giftcard_entry()
S
79 1 3
order_status_failed()
S
68 1 7
order_status_cancelled()
S
68 1 7
admin_init()
S
75 1 4
order_status_changed()
S
78 1 3
order_status_completed()
S
79 1 3
payment_complete()
S
79 1 3
__construct()
S
79 1 3